﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace ProjetoComperio.DataLayer.Entities
{
    public class Person
    {

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        public virtual int PersonID { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        [DisplayName("Nome")]
        public virtual string Name { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        [DisplayName("Email")]
        public virtual string Email { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
        [DisplayName("Data de Nascimento")]
        public virtual DateTime BirthDate { get; set; }

        [DisplayName("País")]
        public virtual string Country { get; set; }

        [DisplayName("Estado")]
        public virtual string State { get; set; }

        [DisplayName("Bairro")]
        public virtual string Neighbourhood { get; set; }

        [DisplayName("CEP")]
        public virtual string ZipCode { get; set; }

        [DisplayName("Rua")]
        public virtual string Street { get; set; }

        [DisplayName("Número")]
        public virtual string AddressNumber { get; set; }

        [DisplayName("Cidade")]
        public virtual string City { get; set; }

        [DisplayName("Site/Blog")]
        public virtual string WebPage { get; set; }

        [Required(ErrorMessageResourceName = "Required", ErrorMessageResourceType = typeof(ErrorMessages))]
       
        public virtual int EducationLevelID { get; set; }

         [DisplayName("Nível de escolaridade")]
        public virtual EducationLevel EducationLevel { get; set; }

        [DisplayName("Quero saber as novidades")]
        public bool ReceiveComperioNews { get; set; }

    }
}
